-
Notifications
You must be signed in to change notification settings - Fork 11
style(badge): added a min-inline-size
#4715
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
style(badge): added a min-inline-size
#4715
Conversation
especially for single character contents
🔭🐙🐈 Test this branch here: https://db-ux-design-system.github.io/core-web/review/372-text-badge-sollte-nicht-schmaler-als-rund-werden |
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
min-inline-size
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds a minimum inline size to the badge component to ensure badges don't become narrower than a circle, particularly for single-character content.
- Added CSS rules to set a minimum inline size for non-empty badges
- Applied content-box sizing to ensure proper dimension calculations
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Proposed changes
Added a
min-inline-size
especially for single character contents, to ensure that it won't get any narrower than a circle.Resolves db-ux-design-system/core#372
Types of changes
Further comments